import request from "@/utils/request";

// 查询诊断企业成员数据列表
export function listMember(query) {
  return request({
    url: "/system/member/list",
    method: "get",
    params: query,
  });
}

// 查询诊断企业成员数据详细
export function getMember(memberId) {
  return request({
    url: "/system/member/" + memberId,
    method: "get",
  });
}

// 新增诊断企业成员数据
export function addMember(data) {
  return request({
    url: "/system/member",
    method: "post",
    data: data,
  });
}
// 新增诊断企业成员数据
export function addMemberList(data) {
  return request({
    url: "/system/member/batch",
    method: "post",
    data: data,
  });
}

// 修改诊断企业成员数据
export function updateMember(data) {
  return request({
    url: "/system/member",
    method: "put",
    data: data,
  });
}

// 删除诊断企业成员数据
export function delMember(memberId) {
  return request({
    url: "/system/member/" + memberId,
    method: "delete",
  });
}

export function getMembers(memberIds) {
  return request({
    url: "/system/member/" + memberIds,
    method: "get",
  });
}
